html {
  font-family: "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  word-spacing: 1px;
  text-size-adjust: 100%;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  box-sizing: border-box;
}

*, *:before, *:after {
  box-sizing: border-box;
  margin: 0;
}
/** common **/
.container {
  width: $container-width;
  margin: 0 auto;
}

.vh {
  min-height: 100vh;
}
.m-t {
  margin-top: 16px;
}
.m-t-s {
  margin-top: 8px;
}
.m-t-l {
  margin-top: 32px;
}
.m-b {
  margin-bottom: 16px;
}
.m-b-s {
  margin-bottom: 8px;
}
.m-b-l {
  margin-bottom: 32px;
}

/** app layout **/
.app {
  .app-header {
    height: 36px;
    background: #000;
    position: sticky;
    left: 0;
    top: 0;
    right: 0;
    z-index: 100;

    .app-header-wrapper {
      display: flex;
      flex-flow: row;
      align-items: center;
      justify-content: space-between;
      height: inherit;
      font-size: 14px;
      color: #ffffff;
      
      .link {
        color: #ffffff;
        margin: 0 8px;
      }
    }
  }

  .app-nav {
    position: fixed;
    display: inline-block;
    width: 160px;
    top: 52px;
    left: calc((100% - 1180px) / 2);
  }

  .app-main {
    float: left;
    width: 700px;
    margin: 0 20px 0 160px;
    position: relative;
  }

  .app-aside {
    float: right;
    width: 300px;
  }
}

.app-logo {
  margin: 8px 0;
  .h1 {
    font-size: 28px;
    font-weight: 600;
    color: #222;
  }
}

// menu
.app-menu {
  width: 160px;

  &.app-menu:after{
    display: none;
  }

  .menu-item {
    &.ivu-menu-item-active:not(.ivu-menu-submenu){
      color: #2d8cf0;
      border-left: 2px solid #2d8cf0;
      border-right: 0;
      z-index: 2;
    }
  }
}

// slide
.slide{
  height: 260px;
  margin-bottom: 8px;
  
  .ivu-carousel-item {
    .demo-carousel {
      height: 260px;
    }
    &:nth-child(1) {
      .demo-carousel {
        background: blueviolet;
      }
    }
    &:nth-child(2) {
      .demo-carousel {
        background: greenyellow;
      }
    }
    &:nth-child(3) {
      .demo-carousel {
        background: blue;
      }
    }
    &:nth-child(4) {
      .demo-carousel {
        background: palevioletred;
      }
    }
  }
}

// media-list
.media-list {
  .media-item {
    display: flex;
    flex-flow: row;
    align-items: flex-start;
    position: relative;
    padding: 16px 0;
    
    &:after {
      content: '';
      position: absolute;
      height: 1px;
      background: #e8e8e8;
      left: 0;
      right: 0;
      bottom: 0;
    }
    &:last-child {
      &:after {
        display: none;
      }
    }

    .media-item__thumb {
      width: 158px;
      height: 102px;
      overflow: hidden;
      margin-right: 16px;
      img {
        max-width: 100%;
      }
    }

    .media-item__content {
      flex: 1;

      .media-item__title {
        font-size: 18px;
        line-height: 1.2;
      }

      .item-description {
        margin: 8px 0;
        font-size: 14px;
        line-height: 1.5;
        overflow: hidden; 
        text-overflow: ellipsis;
        display: -webkit-box; 
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2; 
      }

      // .media-item__meta {
        
      // }
    }

    // small
    &.media-item--small {
      padding: 10px 0;

      .media-item__thumb {
        width: 60px;
        height: 60px;
        img {
          height: 100%;
        }
      }

      .media-item__content {

        .media-item__title {
          font-size: 14px;
          font-weight: 500;
        }

        .item-description {
          font-size: 12px;
          line-height: 1.5;
          -webkit-line-clamp: 1; 
        }

        // .media-item__meta {
        //   
        // }
      }
    }
  }
}

// text-list
.text-list {
  list-style: none;
  .text-list-item {
    padding: 8px 0;
    font-size: 12px;
    line-height: 1.5;

    .index {
      display: inline-block;
      height: 18px;
      width: 18px;
      margin-right: 10px;
      text-align: center;
      // border-radius: 100%;
      background: #e8e8e8;
    }
  }
}

// card
.aside-card {
  margin-bottom: 16px;
  border-radius: 0;

  &:hover {
    box-shadow: none;
  }

  .aside-card__title {
    font-size: 14px;
    .icon {
      margin-right: 12px;
    }
  }
}

.link {
  color: #222;
}